﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="form.aspx.cs" Inherits="samples_form" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Forms</title>
</head>
<body>
	 <form id="myForm" runat="server">

<octo:FormView Caption ="Contact Us" runat="server">
	<octo:FormRow ID="nameRow" Label="Name" runat="server">
		<octo:InputText ID="name" MaxLength="30" Required="true" runat="server" />
	</octo:FormRow>

	<octo:FormRow Label="e-mail" runat="server">
		<octo:InputEmail ID="eMail" MaxLength="30" Required="true" runat="server" />
	</octo:FormRow>

	<octo:FormRow Label="Repeat e-mail" runat="server">
		<octo:InputEmail ID="eMail2" MaxLength="30" Required="true" OnServerValidate="ValidateEMailAddresses" runat="server" />
	</octo:FormRow>

	<octo:FormRow Label="Message" VerticalLayout="true" DescriptionAtTop="true" runat="server">
		<octo:TextArea ID="msg" Required="true" runat="server" />
	</octo:FormRow>

	<octo:FormRow OnServerValidate="ValidateTOSAgreement" runat="server">
		<asp:CheckBox ID="tos" Text="I agree with TOS" runat="server" />
	</octo:FormRow>

	<octo:FormRow runat="server">
		<octo:Submit ID="btn" OnClick="btn_Clicked" runat="server" />
	</octo:FormRow>
</octo:FormView>

    </form>

	<octo:Literal ID="resultMsg" runat="server" />
</body>
</html>
